<?php
declare(strict_types=1);

namespace Zms\AdminElementPlus\FormCreate;

use Attribute;
use Hyperf\Di\Annotation\AbstractAnnotation;

#[Attribute(Attribute::TARGET_METHOD)]
class ElemenuForm extends AbstractAnnotation
{
    public string $method = 'GET';

    public string $class;

    public string $function;

    public array $param = [];

    public function __construct(string $class, string $function, array $param = [], string $method = 'GET')
    {
        $this->class = $class;
        $this->function = $function;
        $this->param = $param;
        $this->method = $method;
    }
}